package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 问答分类实体
 */
@Accessors(chain = true)
@Entity
@Table(name = "answer_type")
@ToString
public class AnswerType implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 7998198381639241166L;
    @Id
    private String id;

    @Column(name = "title")
    private String title;

    @Column(name = "picture_url")
    private String pictureUrl;//图片地址

    @Column(name = "content")
    private String content;//问答内容

    @Column(name = "is_delete")
    private Integer isDelete; //0  初始状态 1删除

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;


    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDelete() { return isDelete; }

    public void setIsDelete(Integer isDelete) { this.isDelete = isDelete; }
}
